﻿namespace Journeo_backend.Models.VOs
{
    public class PageResponse<T> where T : class
    {
        public string Status { get; set; }
        public string Message { get; set; }
        public List<T> Data { get; set; }
        public int PageNumber { get; set; }
        public int PageSize { get; set; }
        public long TotalRecords { get; set; }

        public PageResponse(string status, string message, List<T> data, int pageNumber, int pageSize, long totalRecords)
        {
            Status = status;
            Message = message;
            Data = data;
            PageNumber = pageNumber;
            PageSize = pageSize;
            TotalRecords = totalRecords;
        }

        public PageResponse(string status, List<T> data, int pageNumber, int pageSize, long totalRecords)
        {
            Status = status;
            Data = data;
            PageNumber = pageNumber;
            PageSize = pageSize;
            TotalRecords = totalRecords;
        }

        public PageResponse(List<T> data, int pageNumber, int pageSize, long totalRecords)
        {
            Status = "success";
            Data = data;
            PageNumber = pageNumber;
            PageSize = pageSize;
            TotalRecords = totalRecords;
        }
    }
}
